package com.pxxy.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pxxy.common.utils.PageUtils;
import com.pxxy.mall.product.entity.CategoryEntity;
import com.pxxy.mall.product.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author Zhangjj
 * @email zhangjianjian@gmail.com
 * @date 2023-11-29 17:05:08
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    Long[] findCatelogPath(Long catelogId);

    void updateDetail(CategoryEntity category);


    /**
     * 查找所有的一级分类
     * @return
     */
    List<CategoryEntity> getLevel1Categorys();

    Map<String, List<Catalog2Vo>> getCatelogJson();

}

